package com.cz.run.beans.mysql;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品类别表 
 * </p>
 *
 * @author CAIYJ
 * @since 2018-05-23
 */
@TableName("product_cagegory")
public class ProductCagegory extends Model<ProductCagegory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 类别标题
     */
    private String title;
    /**
     * 类别代码
     */
    private String code;
    private Integer pid;
    /**
     * 包含商品数量
     */
    @TableField("product_count")
    private Integer productCount;
    /**
     * 0：未锁；1：已锁
     */
    @TableField("is_lock")
    private Integer isLock;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public Integer getIsLock() {
        return isLock;
    }

    public void setIsLock(Integer isLock) {
        this.isLock = isLock;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ProductCagegory{" +
        ", id=" + id +
        ", title=" + title +
        ", code=" + code +
        ", pid=" + pid +
        ", productCount=" + productCount +
        ", isLock=" + isLock +
        ", createTime=" + createTime +
        "}";
    }
}
